﻿/*
 * taskstate.cpp
 *
 *  Created on: 2018年2月18日
 *      Author: work
 */

#include <dm/export.hpp>

#define DM_API_OS_SYS DM_API_EXPORT

#include <dm/os/sys/taskstate.hpp>

namespace dm{
namespace os{
namespace sys{

static const char* stateStrings[] = {
		"未运行",
		"初始化",
		"正在运行",
		"正在退出",
		"未定义"
};

const char* taskState2String( ETaskState state ){
	if( state<0 || state>=TsUndef )
		return stateStrings[TsUndef-1];
	return stateStrings[state];
}

}
}
}


